package com.koron.device.monitor.ycsw.bean;

import com.koron.bean.base.BaseQueryBean;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @ClassName: FpositionBean
 * @Description:
 * @Date: 2023/1/3
 * @Author: 李一辰
 * @Version: 1.0
 **/
@Data
public class FpositionBean extends BaseQueryBean {

    @ApiModelProperty("功能位置对象id")
    private String id;
    @ApiModelProperty("创建时间Long型")
    private long created;
    @ApiModelProperty("修改时间Long型")
    private long changed;
    @ApiModelProperty("位置编码")
    private String code;
    private Integer type;
    @ApiModelProperty("厂站编码")
    private String factory;
    private String parent;
    @ApiModelProperty("位置名称")
    private String name;
    @ApiModelProperty("可用状态")
    private String status;
    private String statusC;
    @ApiModelProperty("备注")
    private String remark;
    @ApiModelProperty("排序")
    private Integer order;
    @ApiModelProperty("单元编码")
    private String process;
    @ApiModelProperty("位置简称")
    private String sname;
    @ApiModelProperty("模块编码")
    private String model;

    private Integer important;
    @ApiModelProperty("是否关键")
    private String importantS;

    @ApiModelProperty("节点层级")
    private String classify;



    public void setImportant(Integer important) {
        this.important = important;
        switch (important) {
            case 1:
                this.importantS = "是";
                break;
            case 0:
                this.importantS = "否";
                break;
        }
    }

}
